package cn.net.msg.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.springframework.stereotype.Component;

@Component("mood")
@Entity @Table(name = "tb_mood")
public class TbMood {

    @Id @Column(name = "Mood_id",length=11)
    private int moodId;

    @Column(name = "User_id",length=20)
    private long userId;

    @Column(name = "User_name",length=100)
    private String userName;

    @Column(name = "Mood_content",length=1000)
    private String moodContent;

    @Column(name = "Mood_praise_count",length=11)
    private int moodPraiseCount;

    @Column(name = "Mood_belittle_count",length=11)
    private int moodBelittleCount;

    @Column(name = "Mood_location",length=200)
    private String moodLocation;

    @Column(name= "Mood_creattime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date moodCreattime;

    @Transient
    private boolean heatFlag;

    public int getMoodId() {
        return moodId;
    }

    public void setMoodId(int moodId) {
        this.moodId = moodId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMoodContent() {
        return moodContent;
    }

    public void setMoodContent(String moodContent) {
        this.moodContent = moodContent;
    }

    public int getMoodPraiseCount() {
        return moodPraiseCount;
    }

    public void setMoodPraiseCount(int moodPraiseCount) {
        this.moodPraiseCount = moodPraiseCount;
    }

    public int getMoodBelittleCount() {
        return moodBelittleCount;
    }

    public void setMoodBelittleCount(int moodBelittleCount) {
        this.moodBelittleCount = moodBelittleCount;
    }

    public String getMoodLocation() {
        return moodLocation;
    }

    public void setMoodLocation(String moodLocation) {
        this.moodLocation = moodLocation;
    }

    public Date getMoodCreattime() {
        return moodCreattime;
    }

    public void setMoodCreattime(Date moodCreattime) {
        this.moodCreattime = moodCreattime;
    }

    public boolean isHeatFlag() {
        return heatFlag;
    }

    public void setHeatFlag(boolean heatFlag) {
        this.heatFlag = heatFlag;
    }

}
